Optimal. Leaf size=107 \[ \frac{2 a^3 \tanh ^{-1}\left (\frac{b-a \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2+b^2}}\right )}{b^3 d \sqrt{a^2+b^2}}+\frac{x \left (2 a^2-b^2\right )}{2 b^3}-\frac{a \cosh (c+d x)}{b^2 d}+\frac{\sinh (c+d x) \cosh (c+d x)}{2 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.220769, antiderivative size = 107, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {2793, 3023, 2735, 2660, 618, 204} \[ \frac{2 a^3 \tanh ^{-1}\left (\frac{b-a \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2+b^2}}\right )}{b^3 d \sqrt{a^2+b^2}}+\frac{x \left (2 a^2-b^2\right )}{2 b^3}-\frac{a \cosh (c+d x)}{b^2 d}+\frac{\sinh (c+d x) \cosh (c+d x)}{2 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2793
Rule 3023
Rule 2735
Rule 2660
Rule 618
Rule 204
Rubi steps
\begin{align*} \int \frac{\sinh ^3(c+d x)}{a+b \sinh (c+d x)} \, dx &=\frac{\cosh (c+d x) \sinh (c+d x)}{2 b d}-\frac{\int \frac{a+b \sinh (c+d x)+2 a \sinh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx}{2 b}\\ &=-\frac{a \cosh (c+d x)}{b^2 d}+\frac{\cosh (c+d x) \sinh (c+d x)}{2 b d}-\frac{i \int \frac{-i a b+i \left (2 a^2-b^2\right ) \sinh (c+d x)}{a+b \sinh (c+d x)} \, dx}{2 b^2}\\ &=\frac{\left (2 a^2-b^2\right ) x}{2 b^3}-\frac{a \cosh (c+d x)}{b^2 d}+\frac{\cosh (c+d x) \sinh (c+d x)}{2 b d}-\frac{a^3 \int \frac{1}{a+b \sinh (c+d x)} \, dx}{b^3}\\ &=\frac{\left (2 a^2-b^2\right ) x}{2 b^3}-\frac{a \cosh (c+d x)}{b^2 d}+\frac{\cosh (c+d x) \sinh (c+d x)}{2 b d}+\frac{\left (2 i a^3\right ) \operatorname{Subst}\left (\int \frac{1}{a-2 i b x+a x^2} \, dx,x,\tan \left (\frac{1}{2} (i c+i d x)\right )\right )}{b^3 d}\\ &=\frac{\left (2 a^2-b^2\right ) x}{2 b^3}-\frac{a \cosh (c+d x)}{b^2 d}+\frac{\cosh (c+d x) \sinh (c+d x)}{2 b d}-\frac{\left (4 i a^3\right ) \operatorname{Subst}\left (\int \frac{1}{-4 \left (a^2+b^2\right )-x^2} \, dx,x,-2 i b+2 a \tan \left (\frac{1}{2} (i c+i d x)\right )\right )}{b^3 d}\\ &=\frac{\left (2 a^2-b^2\right ) x}{2 b^3}+\frac{2 a^3 \tanh ^{-1}\left (\frac{b-a \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2+b^2}}\right )}{b^3 \sqrt{a^2+b^2} d}-\frac{a \cosh (c+d x)}{b^2 d}+\frac{\cosh (c+d x) \sinh (c+d x)}{2 b d}\\ \end{align*}
Mathematica [A] time = 0.305172, size = 101, normalized size = 0.94 \[ \frac{-2 \left (b^2-2 a^2\right ) (c+d x)-\frac{8 a^3 \tan ^{-1}\left (\frac{b-a \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{-a^2-b^2}}\right )}{\sqrt{-a^2-b^2}}-4 a b \cosh (c+d x)+b^2 \sinh (2 (c+d x))}{4 b^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.03, size = 262, normalized size = 2.5 \begin{align*} -{\frac{1}{2\,bd} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-2}}+{\frac{1}{2\,bd} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-1}}-{\frac{a}{d{b}^{2}} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-1}}+{\frac{{a}^{2}}{d{b}^{3}}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) }-{\frac{1}{2\,bd}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) }-2\,{\frac{{a}^{3}}{d{b}^{3}\sqrt{{a}^{2}+{b}^{2}}}{\it Artanh} \left ( 1/2\,{\frac{2\,a\tanh \left ( 1/2\,dx+c/2 \right ) -2\,b}{\sqrt{{a}^{2}+{b}^{2}}}} \right ) }+{\frac{1}{2\,bd} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) ^{-2}}+{\frac{1}{2\,bd} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) ^{-1}}+{\frac{a}{d{b}^{2}} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) ^{-1}}-{\frac{{a}^{2}}{d{b}^{3}}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) }+{\frac{1}{2\,bd}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.42845, size = 1434, normalized size = 13.4 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20252, size = 217, normalized size = 2.03 \begin{align*} -\frac{a^{3} \log \left (\frac{{\left | 2 \, b e^{\left (d x + c\right )} + 2 \, a - 2 \, \sqrt{a^{2} + b^{2}} \right |}}{{\left | 2 \, b e^{\left (d x + c\right )} + 2 \, a + 2 \, \sqrt{a^{2} + b^{2}} \right |}}\right )}{\sqrt{a^{2} + b^{2}} b^{3} d} + \frac{{\left (2 \, a^{2} - b^{2}\right )}{\left (d x + c\right )}}{2 \, b^{3} d} - \frac{{\left (4 \, a b e^{\left (d x + c\right )} + b^{2}\right )} e^{\left (-2 \, d x - 2 \, c\right )}}{8 \, b^{3} d} + \frac{b d e^{\left (2 \, d x + 2 \, c\right )} - 4 \, a d e^{\left (d x + c\right )}}{8 \, b^{2} d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]